<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<tite></tite>
</head>
<body>
	<input type="hidden" id="province"/>
<input type="hidden" id="address" value="广东省广州市海珠区聚徳西路1号德臻科创园中科鼎盛大厦1栋6楼601"/>
<input type="hidden" id="mapInfo"/>
	<div class="" id="baiduMapContainer" style="border: 1px solid #DFE5EB;">
		<div id="baiduMapContainerDiv" style="height:398px; width:1098px;" class="mapContainer"></div>
		<div id="r-result"></div>
    </div> 
</body>
<script src="/res/common/js/jquery-core.min.js" type="text/javascript"></script>
<input id="isHome" type="hidden" value="1" />
<input id="logofixation" type="hidden" value="" />
<input type="hidden" value="false" name="top"/>
<input id="siteWeightValue" type="hidden" value="1" />
<div id="module_del_data"></div>
<div id="foot_returnTop" class="backTop" style="display: none;"><a></a></div>
<script type="text/javascript">
	$("#foot_returnTop").click(function(){
		$('body,html').animate({scrollTop:0},500);
        return false;
    })
    var SiteLanguage = "cn";
    var locationDomain = "";
</script>
<script src="/res/common/js/jquery-ui-core.min.js" type="text/javascript"></script>
<script src="/res/common/js/qrcode.js" type="text/javascript"></script>
<script src="/res/common/js/jquery.ui.min.js" type="text/javascript"></script>
<script src="/res/common/js/jquery.effect.min.js" type="text/javascript"></script>
<script src="/res/common/js/jquery.ext.js" type="text/javascript"></script>


<script src="/jrfr/js/photo/modernizr-1.5.min.js" type="text/javascript"></script>
<script src="/jrfr/js/photo/jquery.mousewheel.js" type="text/javascript"></script>


<script id="manageMinSupport" src="/jrfr/js/manage.min.support.js" data="0" language="" siteTplSolution="496a00001" type="text/javascript" charset="utf-8"></script>

<script src="/jrfr/effectParty/js/sliderzxr.js" charset="utf-8"></script>
<script src="/jrfr/effectParty/js/ScrollTrigger.js" charset="utf-8"></script>
<script src="/jrfr/js/front.js" type="text/javascript" charset="utf-8"></script>
<script src="/jrfr/js/product.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">

    $(document).ready(function(){
        if(/Android|webOS|MicroMessenger|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {

            $("#pageMain").addClass("mobi_pagemain");
        }
    })
//展示公告
//弹框 公告   公告  --------------------------
function initLoadPopout(){
    var showModule = 1;
    initguidShow();

}
//用户中心 选择使用模版
function ucenterOpenSiteTemplates(serialNo,id,weightValue){
    $.ajaxSettings.async = false;
    Site.loadWebSiteTemplates();
    $.ajaxSettings.async = true;
    var siteWeightValue = $("#siteWeightValue").val();
    if(parseInt(siteWeightValue)>= parseInt(weightValue)){
        var html = '<div class="module_hd">已选模板风格</div><div class="c-telimg"><img width="220" src="/res/jrfcms/img/tpltheme/'+serialNo+'.jpg"/></div>'
        html += '<div class="vipBottom">编号:'+serialNo+'</div><div class="vipcoverbg"></div>';
        $('#previewTemplate').html(html);
        $('#copyTemplateId').val(id);
        $('#copyTemplateSerialNo').val(serialNo);
        copyTemplate();
    }else{
        Site.upgradeReminderFn("template");
    }
}
////展示引导
function initguidShow(){

}
window._bannerData = null;
var newCopyRight2019 = 1;



</script>
<script type="text/javascript" src="/login_status.html?staticPageStatus=0"></script>
<script type="text/javascript" src="/res/common/js/jz.js"></script>


<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=iL4Q8f01vPZalQE3XRxHAH6G"></script>
<!-- <script type="text/javascript" src="/res/common/js/map.js"></script> -->
<script type="text/javascript">
	$(function(){
			searchMap('113.332682', '23.084371', '广东省广州市海珠区聚徳西路1号德臻科创园中科鼎盛大厦1栋6楼603', '德爱（广州）健康产业有限公司', '');
	});
	
	  var map;
		var point = new BMap.Point(113.332682,23.084371);
		var map = new BMap.Map("baiduMapContainerDiv");    // 创建Map实例
		map.centerAndZoom(point, 19);  // 初始化地图,设置中心点坐标和地图级别
		map.enableScrollWheelZoom();   //启用滚轮放大缩小，默认禁用
		map.enableContinuousZoom();    //启用地图惯性拖拽，默认禁用
		var marker = new BMap.Marker(point);  // 创建标注
		map.addOverlay(marker);               // 将标注添加到地图中
		marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
		var mapType1 = new BMap.MapTypeControl({mapTypes: [BMAP_NORMAL_MAP,BMAP_HYBRID_MAP]});
		map.addControl(mapType1);
		var top_left_control = new BMap.ScaleControl({anchor: BMAP_ANCHOR_TOP_LEFT});// 左上角，添加比例尺
		var top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
		map.addControl(top_left_control);        
		map.addControl(top_left_navigation);     
		var ac = new BMap.Autocomplete(    //建立一个自动完成的对象
				{"input" : "address"
				,"location" : map
			});
		ac.setInputValue($("#addressHid").val());

		var myValue;
		ac.addEventListener("onconfirm", function(e) {    //鼠标点击下拉列表后的事件
		var _value = e.item.value;
			myValue = _value.province +  _value.city +  _value.district +  _value.street +  _value.business;
			$("#searchResultPanel").html("onconfirm<br />index = " + e.item.index + "<br />myValue = " + myValue);
				setPlace();
		});
		var infoWindow;
		function setPlace(){
			map.clearOverlays();    //清除地图上所有覆盖物
			function myFun(){
				var pp = local.getResults().getPoi(0).point;    //获取第一个智能搜索的结果
				map.centerAndZoom(pp, 19);
				$("#abscissa").val(pp.lng);
				$("#ordinate").val(pp.lat);
				map.addOverlay(new BMap.Marker(pp));    //添加标注
			}
			var local = new BMap.LocalSearch(map, { //智能搜索
				  onSearchComplete: myFun
			});
			local.search(myValue);
		}
		function change(obj){
			var address = $("#address").val();
			if(address == ""){
				return ;
			}
			map.clearOverlays();    //清除地图上所有覆盖物
			function myFun(){
				var pp = local.getResults().getPoi(0).point;    //获取第一个智能搜索的结果
				map.centerAndZoom(pp, 19);
				$("#abscissa").val(pp.lng);
				$("#ordinate").val(pp.lat);
				map.addOverlay(new BMap.Marker(pp));    //添加标注
			}
			var local = new BMap.LocalSearch(map, { //智能搜索
				  onSearchComplete: myFun
			});
			local.search(address);
		}
			
		function searchMap(lng, lat, data, companyname, companyphone){
			if($.trim(lng) != "" && $.trim(lat) != ""){
				map.clearOverlays();
				var point = new BMap.Point(lng, lat);
				map.centerAndZoom(point, 19);  // 初始化地图,设置中心点坐标和地图级别
				var marker = new BMap.Marker(point); 
				map.addOverlay(marker);
				marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
				var sContent = "<div><h4 style='margin:0 0 5px 0;padding:0.2em 0'>"+companyname+"</h4>" + 
					"<span style='margin:0;line-height:1.5;font-size:13px'>地址："+data;
					
				if(companyphone != null && companyphone != ""){
					sContent += "</br>电话："+companyphone;
				}
				sContent += "</span></div>";
					
					var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
					marker.addEventListener("click", function(){          
						  this.openInfoWindow(infoWindow);//图片加载完毕重绘infowindow
					});
					marker.openInfoWindow(infoWindow);//图片加载完毕重绘infowindow
			}else{
				var local = new BMap.LocalSearch(map, {
					renderOptions:{map: map}
				});
				local.search(data);
			}
		}
		
		
		
</script> 
</html>
